Skip to content

Conversation

Dimi1010
Copy link
Collaborator

The parseUntil is now fully inclusive and parses until it exhausts a sequence of target protocol types. This allows specifying target protocols that allow chaining of the same protocol types.

Simplified the rollback mechanism.

- The `parseUntil` is now fully inclusive and parses until it exhausts a sequence of target protocol types. This is to allow parsing until recursive layers that are followed by a layer of the same type.
- Readability improvements.
@Dimi1010 Dimi1010 changed the title Refactored the main packet parse loop. Fix inclusive parseUntil condition the main packet parse loop. Sep 12, 2025
@Dimi1010 Dimi1010 changed the title Fix inclusive parseUntil condition the main packet parse loop. Fix inclusive parseUntil condition in the main packet parse loop. Sep 12, 2025
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 57.62712% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.45%. Comparing base (0a6241a) to head (e4515e0).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
Tests/PcppTestUtilities/Resources.cpp 7.69% 24 Missing ⚠️
Tests/Packet++Test/Tests/PacketTests.cpp 92.30% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1964      +/-   ##
==========================================
- Coverage   83.48%   83.45%   -0.04%     
==========================================
  Files         311      311              
  Lines       54885    54920      +35     
  Branches    12218    12220       +2     
==========================================
+ Hits        45822    45834      +12     
+ Misses       7847     7819      -28     
- Partials     1216     1267      +51     
Flag Coverage Δ
alpine320 75.90% <50.00%> (-0.05%) ⬇️
fedora42 76.05% <50.00%> (-0.05%) ⬇️
macos-13 81.61% <59.64%> (-0.04%) ⬇️
macos-14 81.61% <59.64%> (-0.04%) ⬇️
macos-15 81.62% <59.64%> (-0.04%) ⬇️
mingw32 70.32% <90.90%> (-0.02%) ⬇️
mingw64 70.32% <90.90%> (+0.11%) ⬆️
npcap ?
rhel94 75.77% <50.00%> (-0.05%) ⬇️
ubuntu2004 60.20% <40.62%> (-0.04%) ⬇️
ubuntu2004-zstd 60.30% <40.62%> (-0.04%) ⬇️
ubuntu2204 75.69% <50.00%> (-0.08%) ⬇️
ubuntu2204-icpx 60.73% <94.73%> (+<0.01%) ⬆️
ubuntu2404 75.93% <50.00%> (-0.05%) ⬇️
ubuntu2404-arm64 75.57% <48.71%> (-0.06%) ⬇️
unittest 83.45% <57.62%> (-0.04%) ⬇️
windows-2022 85.48% <100.00%> (+0.14%) ⬆️
windows-2025 85.51% <100.00%> (+0.11%) ⬆️
winpcap 85.51% <100.00%> (-0.09%) ⬇️
xdp 53.54% <50.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Dimi1010 Dimi1010 marked this pull request as ready for review September 12, 2025 20:02
@Dimi1010 Dimi1010 requested a review from seladb as a code owner September 12, 2025 20:02
This is so resource data can be generated easily for test creation.
By default all ResourceProvider objects are created as frozen, and attempting to save to them will throw an exception.
@Dimi1010 Dimi1010 requested a review from seladb September 21, 2025 14:14
Copy link
Owner

@seladb seladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the commented-out code before merging: #1964 (comment)

Otherwise, LGTM!

@Dimi1010 Dimi1010 merged commit d549230 into seladb:dev Sep 25, 2025
43 checks passed
@Dimi1010 Dimi1010 deleted the refactor/parse-next-layer-loop branch September 25, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants